Routines (alphabetical) > Routines: N > NCDF Routines > NCDF_GROUPPARENT

NCDF_GROUPPARENT

The NCDF_GROUPPARENT function returns the ID of a group’s parent group.

Syntax

Result = NCDF_GROUPPARENT( Grpid)

Return Value

Returns the ID of a group’s parent group. If the specified group is the root group, or the associated file is not a NetCDF 4 file, the scalar value -1 is returned.

Arguments

Grpid

The ID of the group to query, returned from a previous call to NCDF_OPEN, NCDF_CREATE, or NCDF_GROUPDEF.

Keywords

None

Examples

See the example for NCDF_GROUPNAME.

Version History

 

8.0

Introduced

See Also

NCDF_FULLGROUPNAME, NCDF_GROUPNAME, NCDF_GROUPSINQ